#!/bin/bash

# get and install bzip2

src=$(adapt tool get http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz)

cd $src

#where to install?
prefix=$(adapt query sys/prefix)

#static version
make
make install PREFIX=$prefix
#dynamic version
make clean
make -f Makefile-libbz2_so
# copy the files manally
cp *.so* $prefix/lib
